import axios from '@/apis'

// 获取一级分类列表数据
export const getCategoryAPI = id => axios('/category', { params: { id } })

// 获取二级分类面包屑导航数据
export const getSubCategoryNavAPI = id =>
  axios('/category/sub/filter', { params: { id } })

// 获取二级分类商品数据
export const getSubCategoryGoodsAPI = data =>
  axios.post('/category/goods/temporary', data)
